home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_6660.txt < prev    next >
Text File  |  1994-03-01  |  1KB  |  31 lines

  1. 10 MODE8:DIM:GOSUB900:c$=CHR$(5):DEFCHR$(252)="123E020000":DEFCHR$(253)="2E2A3A0000":DEFCHR$(254)="A2A49C92A2":t$="N(æÆ,åý),N(æ’,åý) a<æÆ-æ’<b"
  2. 20 CLS:PRINTt$;TAB(0);"input new data xÆ (Y/N) ?";:a$=INPUT$(1,@)
  3. 22 IFa$<>"Y" ANDa$<>"y" THEN30
  4. 25 s$="xÆ":GOSUB"LIB0:S6020":GOSUB900
  5. 30 CLS:PRINTt$;TAB(0);"input new data x’ (Y/N) ?";:a$=INPUT$(1,@)
  6. 32 IFa$<>"Y" ANDa$<>"y" THEN36
  7. 35 s$="x’":GOSUB"LIB0:S6030":GOSUB900
  8. 36 r=sa:IFr>1 THENs=sg:t=sm ELSEs=0:t=0
  9. 37 f=95:u=sz:IFu>1 THENv=sh:w=sn ELSEv=0:w=0
  10. 45 CLS:PRINTt$;
  11. 50 z=r:s$="nÆ":GOSUB500:r=z
  12. 55 z=s:s$="“Æ":GOSUB500:s=z
  13. 60 z=t:s$="SÆ":GOSUB500:t=z
  14. 70 z=u:s$="n’":GOSUB500:u=z
  15. 75 z=v:s$="“’":GOSUB500:v=z
  16. 80 z=w:s$="S’":GOSUB500:w=z
  17. 90 CLS:PRINT"Confidence level (1-à)[%]";
  18. 95 z=f:s$="1-à":GOSUB500:f=z:IFf<0 ORf>100 THEN95
  19. 97 CLS:PRINT"N(æÆ,åý),N(æ’,åý)   ";f;"%";TAB(0);".....";
  20. 100 n=r+u-2:p=(1-f/100)/2:sr=0:GOSUB"LIB0:S6430":GOSUB900:IFsr THEN*
  21. 110 z=s-v-x*SQR((1/r+1/u)*((t+w)/n)):GOSUB400:a=z
  22. 120 z=s-v+x*SQR((1/r+1/u)*((t+w)/n)):GOSUB400:b=z
  23. 130 PRINTc$;a;"< æÆ-撠<";b;:a$=INPUT$(1,@):GOTO45
  24. 400 IFz THENz=ROUND(z,LOG(ABSz)-5)
  25. 410 RETURN
  26. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@10;z:LOCATE0,0:RETURN
  27. 900 ONERRORGOTO910:RETURN
  28. 910 IFERR=1 THENCLS:ONERRORGOTO0
  29. 920 IFERL=500 THENRESUME500
  30. 930 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME20
  31.